-- 外观
local opt = vim.opt
opt.termguicolors = true
opt.signcolumn = "yes"
-- vim.cmd[[colorscheme tokyonight-moon]]
-- myscheme = 'lipoide'        -- Instead do
-- vim.cmd[[colorscheme nightfox]]
random_color = {
    'molokai',
    'tokyonight' ,
        'tokyonight-day' ,  -- 亮色
        'tokyonight-moon' ,
        'tokyonight-night' ,
        'tokyonight-storm' ,
    'gruvbox-material' ,
    'sonokai' ,
    'kanagawa',
        'kanagawa-dragon',
        'kanagawa-lotus',   -- 亮色
        'kanagawa-wave',
    'melange',
    'vscode',
    'nightfox'
}
math.randomseed(os.time())
local mycolor = random_color[math.random(15)]
local switch = 0
if switch == 1 then
    vim.g.myscheme = mycolor
else
    vim.g.myscheme = 'sonokai'
end
-- vim.cmd[[let $myscheme = "lipoide"]]
-- vim.cmd[[colorscheme $myscheme]]
-- local colorscheme = 'monokai_pro'

-- vim.notify('colorscheme ' .. vim.g.myscheme)
is_ok, _ = pcall(vim.cmd, "colorscheme " .. vim.g.myscheme)
if not is_ok then
    vim.notify('colorscheme ' .. vim.g.myscheme .. ' not found!')
    return
end
-- vim.cmd[[colorscheme gruvbox-material]]
